package com.fantu.demo.service.impl;

import com.fantu.demo.dao.DemoDao;
import com.fantu.demo.domian.*;
import com.fantu.demo.service.IDemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DemoServiceImpl implements IDemoService {

    @Autowired(required=false)
    DemoDao demoDao;


    @Override
    public List<BarEntity> getBar() {
        return demoDao.queryBar();
    }

    public List<BrokenLineEntity> getBrokenLine() {
        return demoDao.queryBrokenLine();
    }

    @Override
    public List<LineEntity> getLine() {
        return demoDao.queryLine();
    }

    @Override
    public List<PieEntity> getPie() {
        return demoDao.queryPie();
    }

    @Override
    public List<MapEntity> getMap() {
        return demoDao.queryMap();
    }

    @Override
    public List<NorthernDataEntity> getNorthernData(){
        return demoDao.queryNorthernData();
    }

    @Override
    public List<MCGEntity> getMCGData(){
        return demoDao.queryMCGData();
    }

    @Override
    public List<SouthEntity> getSouthData(){
        return demoDao.querySouthData();
    }

    @Override
    public List<CementPlantEntity> getCementPlantData(){
        return demoDao.queryCementPlantData();
    }

    @Override
    public List<Table1Entity> getTable1(){
        return demoDao.queryTable1();
    }

    @Override
    public List<Table2Entity> getTable2() {
        return demoDao.queryTable2();
    }


}
